<!--
 * @Author: your name
 * @Date: 2022-01-12 17:22:10
 * @LastEditTime: 2022-01-12 17:22:10
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \算法测试\day0906\格式化.html
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        /**
 * @param {number[]} nums
 * @return {boolean}
 */
        var increasingTriplet = function (nums) {
            let max = 0;
            for (let i = 0; i < nums.length; i++) {
                let j = i + 1;

                while (j < nums.length) {
                    if (nums[j] > nums[i]) {
                        max = nums[j];
                        for (let k = j + 1; j < nums.length; j++) {
                            if (nums[k] > max) return true;
                        }
                    }
                    j++;
                }
            }
        }
        return false;
    </script>
</body>

</html>